// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 54;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "As you head north, the Pilgrimage Road slopes upward sharply. The air grows cold, and a harsh wind is channeled down this narrow pass. Bits of grit and snow scour your face and sting your eyes. The road runs along a swift river, choked with rocks.";
	text2 = "The welcoming lands of the Rokaj are behind you now. It is in harsh, barren wastes like this that the most hostile Ro are forged.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "This pass is blocked by an old fortification. It is part waypost for merchants and travelers, part ancient tower. Strangely, it still has protective walls. The ground outside the fort has been scorched with fire. Many times.";
	text2 = "This place is old, and even from out here, you can sense the tingling of magic. The Rokaj has many skilled in the ways of magic, and this is where they learn and perfect their art.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There are a bunch of slimes on the road, slithering quickly toward you. They're remarkably fast for blobs of goo.";
	text2 = "A handful of Rokaj in long robes are chasing after them. The slimes are getting away. When they see you, they shout, _Stop them! Throw your bodies in their path!_";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_No!_";
	text1 = "_Please?_";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Stop the slimes.";
	text1 = "You stand in the path of the slimes. Something about you seems delicious to them. They interrupt their flight and turn to devour you. Happily, the sages join in the fight.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Let the slimes go.";
	text1 = "The slimes swiftly slither past you. The mages run by, panting heavily. Finally, they give up. They watch sadly as the slimes ooze into a crack in the cliff wall and are gone.";
	text2 = "The mages shrug. _Oh well. They'll attack a town soon. Then they can be killed._ They shake their heads at you, disappointed in your cowardice, and turn toward the tower to the north.";
	action = END_TALK;
	code =
	cancel_out_fight(0,1);
	break;	

//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "When the slimes are all dead, the sages bandage their wounds and turn to you. _Thank you, Haven. It is good that the slimes are dead, they would have caused great harm. Not to us, but to someone._";


begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Who created them?_";
	text1 = "_We did. In the tower. Then they escaped. We didn't want them to, but it happens._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Where are you from?_";
	text1 = "_The Tower of the Erudico._ They point to the north. _You might be welcome there. I doubt that we would keep Haven out._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._";
	text1 = "Before you leave, one of them gives you a pouch. It contains a scroll. _We make these. You should have one. We want Haven to know that we are helpful. The Erudico only study. We do not rebel._";
	text2 = "Then they turn north and depart.";
	action = END_TALK;
	code =
		reward_give(408);
	break;
	
	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				